-- GENERATED SPELL FOR [Unbound Ent] --


function spell0_30862(pUnit, Event) --@Corrupted Rejuvenation,n/a--
pUnit:FullCastSpellOnTarget(58624,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30862', 12000, 1)
end

function spell1_30862(pUnit, Event) --@Thorns,n/a--
pUnit:FullCastSpellOnTarget(35361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30862', 641, 1)
end

function Sorts_30862(pUnit, Event)
local choix_sorts_30862 = math.random(0, 1)
if choix_sorts_30862 == 0 then
pUnit:RegisterEvent('spell0_30862', 1, 1)
end
if choix_sorts_30862 == 1 then
pUnit:RegisterEvent('spell1_30862', 1, 1)
end
end

function mob30862_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30862', math.random(1500, 3000), 1)
end

function mob30862_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30862_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30862_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30862, 1, 'mob30862_Action')
RegisterUnitEvent(30862, 2, 'mob30862_Leave')
RegisterUnitEvent(30862, 3, 'mob30862_Kill')
RegisterUnitEvent(30862, 4, 'mob30862_Die')
